//导入
import React,{Component} from 'react';

import './App.css';
import {Snow} from '../snow/Snow';









//组件
class App extends Component {
    constructor(props){
        super(props);
        this.snow = new Snow("canvas");
        this.snow.affect = true;
    }

    componentDidMount(){
        this.snow.start();
    }

    render() {
        return (
            <canvas id="canvas"></canvas>
        );
    }
}




//导出
export {App};

